import Vue from "vue";
import VueRouter from "vue-router";

// 注册路由插件
Vue.use(VueRouter);

// 引入组件
import About from "../components/About";
import Home from "../components/Home";

export default new VueRouter({
    routes: [
        {
            path: "/about",
            component: About,
        },
        {
            path: "/home",
            component: Home,
        },
    ],
});
